package com.alpha.schema;

/**
 * schema 相关常量定义
 *
 * @author chenruwan
 * @since 2022-01-01
 */
@SuppressWarnings("unused")
public class SchemaConstants {
    private SchemaConstants() {
    }

    public static final String TAG_INCLUDE = "include";
    public static final String TAG_TABLE = "table";
    public static final String TAG_CHOICE = "choice";
    public static final String TAG_FIELD = "field";
    public static final String TAG_OPTION = "option";
    public static final String TAG_FOREIGN = "foreign";
    public static final String TAG_RELATION = "relation";

    public static final String ATTR_NAME = "name";
    public static final String ATTR_DESC = "desc";
    public static final String ATTR_TYPE = "type";
    public static final String ATTR_TO = "to";
    public static final String ATTR_SINGULAR = "singular";
    public static final String ATTR_NOT_NULL = "not-null";
    public static final String ATTR_NULLABLE = "nullable";
    public static final String ATTR_DEFAULT = "default";
    public static final String ATTR_KEY = "key";
    public static final String ATTR_VISIBLE = "visible";
    public static final String ATTR_PACKAGE = "package";
    public static final String ATTR_FORMAT = "format";
    public static final String ATTR_REACTIVE = "reactive";
    public static final String ATTR_SEARCHABLE = "searchable";
    public static final String ATTR_ORDERS = "orders";
    public static final String ATTR_UNIQUE = "unique";
    public static final String ATTR_UNMODIFIABLE = "unmodifiable";

    public static final String TYPE_DATE = "date";
    public static final String TYPE_TIME = "time";
    public static final String TYPE_DATETIME = "datetime";
}
